﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SilverApp.ViewModel
{
    public class FriendItemViewModel : ViewModelBase
    {

        private LiveService.User        model;
        private HomeViewModel           parent;

        public FriendItemViewModel(LiveService.User xmodel,HomeViewModel xparent)
        {
            model = xmodel;
            parent = xparent;
        }

        public FriendItemViewModel(FriendItemViewModel xcopy)
        {
            model = xcopy.model;
            parent = xcopy.parent;
        }

        public LiveService.User Model
        {
            get { return this.model;}
            set { this.model = value;}
        }

        public String ModelLogin
        {
            get { return this.Model.login; }
            set { this.Model.login = value; }
        }
        /*

        public ICommand OpenMyFriendCommand
        {
            get { return this.parent.EnterFolderCommand; }
            set { this.parent.EnterFolderCommand = value; }
        }
        */
        public FriendItemViewModel Selected
        {
            get { return new FriendItemViewModel(this); }
        }

    }
}
